﻿using System.Linq;
using System.Web;
using BO.News;

namespace GUI.Services.News
{
    /// <summary>
    /// Summary description for GetLichThiDau
    /// </summary>
    public class GetLichThiDau : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            var ajaxResponse = new AjaxResponse();
            var dt = NewsBO.GetLichThiDau();

            if (dt != null && dt.Any())
            {
                ajaxResponse.Data = dt;
                ajaxResponse.Success = true;
            }
            context.Response.Write(ajaxResponse.ToJson());
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}